import request from '@/utils/request'

export function getBigWheels(params) {
  return request({
    url: '/admin/big-wheel',
    method: 'get',
    params
  })
}

export function getBigWheel(id) {
  return request({
    url: `/admin/big-wheel/${id}`,
    method: 'get',
  })
}

export function addBigWheel(data) {
  return request({
    url: '/admin/big-wheel',
    method: 'post',
    data
  })
}

export function updateBigWheel(id, data) {
  return request({
    url: `/admin/big-wheel/${id}`,
    method: 'put',
    data
  })
}

export function stopBigWheel(id) {
  return request({
    url: `/admin/big-wheel/${id}/status`,
    method: 'put'
  })
}

export function deleteBigWheel(id) {
  return request({
    url: `/admin/big-wheel/${id}`,
    method: 'delete'
  })
}


export function getUserPrizeLog(params) {
  return request({
    url: '/admin/user-prize-log',
    method: 'get',
    params
  })
}


export function getUserPrizeLogEntity(params) {
  return request({
    url: '/admin/user-prize-log/entity',
    method: 'get',
    params
  })
}


export function postUserPrizeLogEntity(id,data) {
  return request({
    url: `/admin/user-prize-log/entity/${id}/express `,
    method: 'post',
    data
  })
}
